package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the pur_order_details database table.
 * 
 */
@Entity
@Table(name="pur_order_details")
@NamedQuery(name="PurOrderDetail.findAll", query="SELECT p FROM PurOrderDetail p")
public class PurOrderDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="orderdetail_id")
	private String orderdetailId;

	@Column(name="contax_money")
	private BigDecimal contaxMoney;

	@Column(name="contax_price")
	private BigDecimal contaxPrice;

	@Temporal(TemporalType.DATE)
	@Column(name="delivery_date")
	private Date deliveryDate;

	private BigDecimal money;

	private BigDecimal price;

	@Column(name="pro_id")
	private String proId;

	@Column(name="pur_quantity")
	private int purQuantity;

	private String remarks;

	private BigDecimal tax;

	@Column(name="tax_money")
	private BigDecimal taxMoney;

	//bi-directional many-to-one association to PurOrder
	@ManyToOne
	@JoinColumn(name="order_id")
	private PurOrder purOrder;

	public PurOrderDetail() {
	}

	public String getOrderdetailId() {
		return this.orderdetailId;
	}

	public void setOrderdetailId(String orderdetailId) {
		this.orderdetailId = orderdetailId;
	}

	public BigDecimal getContaxMoney() {
		return this.contaxMoney;
	}

	public void setContaxMoney(BigDecimal contaxMoney) {
		this.contaxMoney = contaxMoney;
	}

	public BigDecimal getContaxPrice() {
		return this.contaxPrice;
	}

	public void setContaxPrice(BigDecimal contaxPrice) {
		this.contaxPrice = contaxPrice;
	}

	public Date getDeliveryDate() {
		return this.deliveryDate;
	}

	public void setDeliveryDate(Date deliveryDate) {
		this.deliveryDate = deliveryDate;
	}

	public BigDecimal getMoney() {
		return this.money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getProId() {
		return this.proId;
	}

	public void setProId(String proId) {
		this.proId = proId;
	}

	public int getPurQuantity() {
		return this.purQuantity;
	}

	public void setPurQuantity(int purQuantity) {
		this.purQuantity = purQuantity;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public BigDecimal getTax() {
		return this.tax;
	}

	public void setTax(BigDecimal tax) {
		this.tax = tax;
	}

	public BigDecimal getTaxMoney() {
		return this.taxMoney;
	}

	public void setTaxMoney(BigDecimal taxMoney) {
		this.taxMoney = taxMoney;
	}

	public PurOrder getPurOrder() {
		return this.purOrder;
	}

	public void setPurOrder(PurOrder purOrder) {
		this.purOrder = purOrder;
	}

}